//
//  YCTitleSegmentView.h
//  TitleContent
//
//  Created by 唐可雄 on 2019/7/18.
//  Copyright © 2019 swustyc. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "YCTitleView.h"

@class YCTitleSegmentView;

NS_ASSUME_NONNULL_BEGIN

@protocol YCTitleSegmentViewDataSource <YCTitleViewDataSource>

@optional
- (NSString *)titleSegmentView:(YCTitleSegmentView *)titleView titleAtIndex:(NSUInteger)index;
- (UIImage *)titleSegmentView:(YCTitleSegmentView *)titleView imageAtIndex:(NSUInteger)index;

@end

@interface YCTitleSegmentView : YCTitleView

@property (nonatomic, weak) id<YCTitleSegmentViewDataSource> dataSource;
@property (nonatomic, weak) id<YCTitleViewDelegate> delegate;

- (void)reloadData;

@end

NS_ASSUME_NONNULL_END
